package nju.software.xkxt.service.model;

import nju.software.xkxt.data.dataobject.SelectionDO;

public class SelectionModel {

	private int userId;
	private int courseId;
	private int state;
	private int success;
	private int max;
	private int tid;
	private String courseName;
	private long num;// 已选人数

	public SelectionModel(int userId, int courseId, int state, int success,
			int max, int tid, String courseName, long num) {
		super();
		this.userId = userId;
		this.courseId = courseId;
		this.state = state;
		this.success = success;
		this.max = max;
		this.tid = tid;
		this.courseName = courseName;
		this.num = num;
	}

	public SelectionModel(SelectionDO selectionDO, String courseName, long num) {
		this.userId = selectionDO.getUserId();
		this.courseId = selectionDO.getCourseId();
		this.state = selectionDO.getState();
		this.success = selectionDO.getSuccess();
		this.max = selectionDO.getMax();
		this.tid = selectionDO.getTid();
		this.courseName = courseName;
		this.num = num;
	}

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public int getCourseId() {
		return courseId;
	}

	public void setCourseId(int courseId) {
		this.courseId = courseId;
	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	public int getSuccess() {
		return success;
	}

	public void setSuccess(int success) {
		this.success = success;
	}

	public int getMax() {
		return max;
	}

	public void setMax(int max) {
		this.max = max;
	}

	public String getCourseName() {
		return courseName;
	}

	public void setCourseName(String courseName) {
		this.courseName = courseName;
	}

	public long getNum() {
		return num;
	}

	public void setNum(long num) {
		this.num = num;
	}

	public int getTid() {
		return tid;
	}

	public void setTid(int tid) {
		this.tid = tid;
	}

}
